package designpattern.command.ricecooker;

import designpattern.command.ricecooker.cmd.CloseRiceCookerCmd;
import designpattern.command.ricecooker.cmd.CookRiceCmd;
import designpattern.command.ricecooker.cmd.OpenRiceCookerCmd;

public class Client {
    public static void main(String[] args) {
        //
        IRiceCookerCmd closeRiceCookerCmd = new CloseRiceCookerCmd();
        RiceCookerInvoker riceCookerInvoker = new RiceCookerInvoker();
        riceCookerInvoker.addCmd(closeRiceCookerCmd);
        riceCookerInvoker.executeCmd();
    }
}
